home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / ABox 1.9.5 / Header Files / ABUEnvQD.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-26  |  3.6 KB  |  130 lines  |  [TEXT/MMCC]

  1. /*    
  2.     Copyright © 1991-1995 by TopSoft Inc.  All rights reserved.
  3.  
  4.     You may distribute this file under the terms of the TopSoft
  5.     Artistic License, accompanying this package.
  6.     
  7.     This file was developed by George (ty) Tempel in connection with TopSoft, Inc..
  8.     See the Modification History for more details.
  9.  
  10. Product
  11.     About Box
  12.  
  13. FILE
  14.     ABUEnvQD.h
  15.  
  16. NAME
  17.     ABUEnvQD.h, part of the ABox project source code,
  18.     a utility class, mixed into other classes, responsible for 
  19.     handling the AboutBox quickdraw/color-quickdraw stuff.
  20.  
  21. DESCRIPTION
  22.     This file contains defines for the about box modules.
  23.     
  24. DEVELOPED BY
  25.     George (ty) Tempel                ttempel@monmouth.com
  26.     All code in this file, and its associated header file was
  27.     Created by George (ty) Tempel in connection with the TopSoft, Inc.
  28.     "FilterTop" application development, except where noted.
  29.  
  30. CARETAKER - George (ty) Tempel <ttempel@monmouth.com>
  31.      Please consult this person for any changes or suggestions to this file.
  32.  
  33. MODIFICATION HISTORY
  34.  
  35.     dd mmm yy    -    xxx    -    patchxx: description of patch
  36.     16 June 94    -    ty    -    Initial Version Created
  37.     20-july-94    -    ty    -    initial version released
  38.     10-mar-95    -    ty    -    1.2 addition of various static methods moved from
  39.                                 ABObject; addition of method for examining
  40.                                 the port, active screen, and pixel depth
  41.     23-may-95    -    ty    -    changes for compatibility with the CodeWarrior CW6
  42.                             release and the associated Universal Headers from Apple:
  43.                             most methods that returned references now have "Ref" at
  44.                             the end of their methods names to prevent possible collisions
  45.                             with datatypes and classes of the same name (older versions
  46.                             of the compiler didn't have a problem with this).
  47.     25-oct-95    -    ty    -    changes for "const" usage under CW7; simplification of Boolean
  48.                             query methods
  49.  
  50. */
  51.  
  52. /*===========================================================================*/
  53.  
  54. /*========== Exclusion Macros ============*/
  55.  
  56. #pragma    once
  57.  
  58. #ifndef    _ABUEnvQD_
  59. #define    _ABUEnvQD_
  60.  
  61.  
  62. /*============ Header Files ==============*/
  63.  
  64. #include    "ABUEnv.h"
  65.  
  66. /*=========== External Linkage ===========*/
  67.  
  68. /*================ Macros ================*/
  69.  
  70. //    kABminPixelDepthForBezel, kABbezelShades, kABbezelWidth are
  71. //    used primarily by DrawFrame/EraseFrame to determine if a 
  72. //    3-d bezel should be drawn around an area. A simple ruled
  73. //    rect will be drawn if the current graphics device is
  74. //    not at least kABminPixelDepthForBezel deep.
  75. #define    kABdefaultScreenDepth            ((short)1)
  76. #define    kABminPixelDepthForBezel            4
  77. #define    kABbezelShades                        1
  78. #define    kABbezelWidth                        1
  79.  
  80. /*============== Constants ===============*/
  81.  
  82.  
  83. /*================ Enums =================*/
  84.  
  85. /*=============== Structs ================*/
  86.  
  87. /*=============== Typedefs ===============*/
  88.  
  89.  
  90. /*=========== Class Definitions ==========*/
  91.  
  92. class    ABUEnvQD : ABUEnv
  93. {
  94.     public:
  95.                         ABUEnvQD(void);
  96.         virtual            ~ABUEnvQD(void);
  97.     
  98.         virtual    Boolean    IsPresent(void);
  99.     
  100.         virtual    long    CheckVersion(void);
  101.         virtual    long    CheckFeatures(void);
  102.  
  103.                 Boolean    HasColorQD(void);
  104.         
  105.                 Boolean    IsColorPort(void) const;
  106.         static    Boolean IsColorPort(GrafPtr inGrafPtr);
  107.                 Boolean IsActiveScreenDevice(GDHandle inGDevice) const;
  108.  
  109.         static    Boolean    IsColorPort(void);
  110.         static    Boolean IsActiveScreenDevice(GDHandle inGDevice);
  111.  
  112.         static short    GetPixelDepth(GDHandle inDevice);
  113.                 
  114.                 long    GetVersion(void) const { return this->VersionRef(); }
  115.                 void    SetVersion(long inVersion)  { this->VersionRef() = inVersion; }
  116.                 
  117.     protected:
  118.         
  119.     private:
  120.         long            mVersion;
  121.         long&            VersionRef(void)      { return this->mVersion; }
  122.         long const&        VersionRef(void) const { return this->mVersion; }
  123. };
  124.  
  125.  
  126. /*========== Function Prototypes =========*/
  127.  
  128.  
  129. #endif    // _ABUEnvQD_
  130.